package com.emser.unc.client.event;

import com.emser.unc.client.presenter.SellerPresenter;
import com.google.gwt.event.shared.GwtEvent;

public class GoBackEvent extends GwtEvent<GoBackEventHandler> {
	public static Type<GoBackEventHandler> TYPE = new Type<GoBackEventHandler>();
	private SellerPresenter sp;
	
	public GoBackEvent(SellerPresenter sp) {
	    this.setSp(sp);
	  }
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<GoBackEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(GoBackEventHandler handler) {
		handler.onGoBack(this);	
	}
	public void setSp(SellerPresenter sp) {
		this.sp = sp;
	}
	public SellerPresenter getSp() {
		return sp;
	}

}
